import { createRouter, createWebHistory,createWebHashHistory } from 'vue-router'
import Home from '../views/Home.vue'

const routes = [
  {
    path: '/',
    redirect:'/Start',
    name: 'Home',
    component: Home
  },
  {
    path: '/Start',
    name: 'Start',
    component: () => import('../views/Start.vue')
  },
  {
    path: '/Finish',
    name: 'Finish',
    component: () => import('../views/Finish.vue')
  },
  {
    path: '/Message',
    name: 'Message',
    component: () => import('../views/Message.vue')
  },
  {
    path: '/Thanks',
    name: 'Thanks',
    component: () => import('../views/Thanks.vue')
  },
  {
    path: '/alreayend',
    name: 'alreayend',
    component: () => import('../views/alreayend.vue')
  },
  {
    path: '/answer',
    name: 'answer',
    component: () => import(/* webpackChunkName: "about" */ '../views/answer.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(process.env.BASE_URL),
  routes
})

export default router
